package com.ibm.cloud.redismq.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "app.redismq")
public class RedisMQProperties {
	private String redisQueueName;
	private String redisWorkQueueName;
	private int recoverierCount = 1;
	private long maxFlushTime = 1000;
	private int consumerCount = 16;

	public String getRedisQueueName() {
		return redisQueueName;
	}

	public void setRedisQueueName(String redisQueueName) {
		this.redisQueueName = redisQueueName;
		this.redisWorkQueueName = redisQueueName + "_working";
	}

	public String getRedisWorkQueueName() {
		return redisWorkQueueName;
	}

	public void setRedisWorkQueueName(String redisWorkQueueName) {
		this.redisWorkQueueName = redisWorkQueueName;
	}
	public int getConsumerCount() {
		return consumerCount;
	}

	public void setConsumerCount(int consumerCount) {
		this.consumerCount = consumerCount;
	}

	public int getRecoverierCount() {
		return recoverierCount;
	}

	public void setRecoverierCount(int recoverierCount) {
		this.recoverierCount = recoverierCount;
	}

	public long getMaxFlushTime() {
		return maxFlushTime;
	}

	public void setMaxFlushTime(long maxFlushTime) {
		this.maxFlushTime = maxFlushTime;
	}

}
